package com.orgcent.activities;

import com.orgcent.util.Tools;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
/**
 * 获取当前网络下，本机IP地址。
 */
public class TestGetLocalAddress extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		TextView stat_tv = new TextView(this);
		stat_tv.setText("当前网络状态{IP,为空表示不可用}：" + Tools.getLocalIpAddress());
		
		setContentView(stat_tv);
	}

}
